package day1;

import java.util.Random;

/**
 * @author oldliu
 * @since 1.0
 */
public class MathTest {
    public static void main(String[] args) {
        System.out.println(Math.abs(-3));
        System.out.println(Math.cos(0));
        System.out.println(Math.max(10,55));
        System.out.println(Math.round(44.6666));
        System.out.println(">>>>>>>>>>>>>>>>>>>");
        System.out.println(Math.floor(-43.5));//-44
        System.out.println(Math.ceil(-43.5));//-43
        System.out.println(Math.random());//[0-1)

        Random r=new Random();
        for(int i=1;i<=100;i++){
            System.out.println(r.nextInt(20));

        }
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>");
        for(int i=1;i<=100;i++){
            System.out.println(r.nextInt());
        }
    }
}
